package com.gl.saasservice.house.repository;

import com.gl.saasservice.house.entity.EstateExpenseBill;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface EstateExpenseBillRepository extends PagingAndSortingRepository<EstateExpenseBill, Long>, JpaSpecificationExecutor<EstateExpenseBill>, JpaRepository<EstateExpenseBill, Long> {

    List<EstateExpenseBill> findByHouseIdAndPaymentStatus(String houseId, Integer paymentStatus);

    List<EstateExpenseBill> findByHouseId(String houseId);

}
